{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/mikealbertus/Dropbox/Research/Land Reform under Chavez in Venezuela/Paper/Research Note/PSRM/PSRM R&R/PSRM Replication Data/AppendixTable3.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}24 Apr 2017, 21:07:06

{com}. do "/Users/mikealbertus/Dropbox/Research/Land Reform under Chavez in Venezuela/Paper/Research Note/PSRM/PSRM R&R/PSRM Replication Data/AppendixTable3.do"
{txt}
{com}. *** APPENDIX TABLE 3 MODELS ***
. 
. #delimit ;
{txt}delimiter now ;
{com}. xi: logit patriotflag misionfull chavezgov2008 nbi lruralpop lvotantes, cl(centro);

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-45500.312}  
Iteration 1:{space 3}log pseudolikelihood = {res:-43330.025}  
Iteration 2:{space 3}log pseudolikelihood = {res:-43165.666}  
Iteration 3:{space 3}log pseudolikelihood = {res:-43165.122}  
Iteration 4:{space 3}log pseudolikelihood = {res:-43165.122}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   122,267
{txt}{col 49}Wald chi2({res}5{txt}){col 67}= {res}    673.87
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-43165.122{txt}{col 49}Pseudo R2{col 67}= {res}    0.0513

{txt}{ralign 79:(Std. Err. adjusted for {res:7,783} clusters in centro)}
{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}    Robust
{col 1}  patriotflag{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}misionfull {c |}{col 15}{res}{space 2}  .771072{col 27}{space 2} .0402137{col 38}{space 1}   19.17{col 47}{space 3}0.000{col 55}{space 4} .6922546{col 68}{space 3} .8498895
{txt}chavezgov2008 {c |}{col 15}{res}{space 2} -.736923{col 27}{space 2}  .062096{col 38}{space 1}  -11.87{col 47}{space 3}0.000{col 55}{space 4} -.858629{col 68}{space 3} -.615217
{txt}{space 10}nbi {c |}{col 15}{res}{space 2}-.0408645{col 27}{space 2} .0035058{col 38}{space 1}  -11.66{col 47}{space 3}0.000{col 55}{space 4}-.0477357{col 68}{space 3}-.0339932
{txt}{space 4}lruralpop {c |}{col 15}{res}{space 2} .0905331{col 27}{space 2} .0121947{col 38}{space 1}    7.42{col 47}{space 3}0.000{col 55}{space 4}  .066632{col 68}{space 3} .1144342
{txt}{space 4}lvotantes {c |}{col 15}{res}{space 2} .0675959{col 27}{space 2}  .033995{col 38}{space 1}    1.99{col 47}{space 3}0.047{col 55}{space 4} .0009669{col 68}{space 3} .1342248
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-1.475012{col 27}{space 2} .3239801{col 38}{space 1}   -4.55{col 47}{space 3}0.000{col 55}{space 4}-2.110002{col 68}{space 3}-.8400231
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. predict patriotflag_hat;
{txt}(option {bf:pr} assumed; Pr(patriotflag))
(23145 missing values generated)

{com}. gen patchavezstate08_iv = patriotflag_hat*chavezgov2008;
{txt}(23,145 missing values generated)

{com}. xi: logit opositor misionfull chavezgov2008 nbi lruralpop lextrange, cl(centro);

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-62401.269}  
Iteration 1:{space 3}log pseudolikelihood = {res:-61489.781}  
Iteration 2:{space 3}log pseudolikelihood = {res:-61471.915}  
Iteration 3:{space 3}log pseudolikelihood = {res:-61471.909}  
Iteration 4:{space 3}log pseudolikelihood = {res:-61471.909}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   122,267
{txt}{col 49}Wald chi2({res}5{txt}){col 67}= {res}    904.89
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-61471.909{txt}{col 49}Pseudo R2{col 67}= {res}    0.0149

{txt}{ralign 79:(Std. Err. adjusted for {res:7,783} clusters in centro)}
{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}    Robust
{col 1}     opositor{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}misionfull {c |}{col 15}{res}{space 2}-.7682192{col 27}{space 2}  .028601{col 38}{space 1}  -26.86{col 47}{space 3}0.000{col 55}{space 4}-.8242762{col 68}{space 3}-.7121622
{txt}chavezgov2008 {c |}{col 15}{res}{space 2}-.3211616{col 27}{space 2} .0339556{col 38}{space 1}   -9.46{col 47}{space 3}0.000{col 55}{space 4}-.3877132{col 68}{space 3}-.2546099
{txt}{space 10}nbi {c |}{col 15}{res}{space 2}-.0118692{col 27}{space 2} .0014067{col 38}{space 1}   -8.44{col 47}{space 3}0.000{col 55}{space 4}-.0146262{col 68}{space 3}-.0091122
{txt}{space 4}lruralpop {c |}{col 15}{res}{space 2} .0005937{col 27}{space 2} .0062906{col 38}{space 1}    0.09{col 47}{space 3}0.925{col 55}{space 4}-.0117357{col 68}{space 3} .0129231
{txt}{space 4}lextrange {c |}{col 15}{res}{space 2}-.0519802{col 27}{space 2} .0079842{col 38}{space 1}   -6.51{col 47}{space 3}0.000{col 55}{space 4}-.0676288{col 68}{space 3}-.0363315
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-.3790027{col 27}{space 2} .0757318{col 38}{space 1}   -5.00{col 47}{space 3}0.000{col 55}{space 4}-.5274343{col 68}{space 3}-.2305711
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. predict opositor_hat;
{txt}(option {bf:pr} assumed; Pr(opositor))
(23145 missing values generated)

{com}. gen oppchavezstate08_iv = opositor_hat*chavezgov2008;
{txt}(23,145 missing values generated)

{com}. xi: logit benefdummy patriotflag_hat patchavezstate08_iv chavezgov2008 opositor_hat oppchavezstate08_iv misionfull nbi lruralpop, cl(centro);

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-24447.194}  
Iteration 1:{space 3}log pseudolikelihood = {res:-24279.065}  
Iteration 2:{space 3}log pseudolikelihood = {res:-24264.505}  
Iteration 3:{space 3}log pseudolikelihood = {res:-24264.467}  
Iteration 4:{space 3}log pseudolikelihood = {res:-24264.467}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   122,267
{txt}{col 49}Wald chi2({res}8{txt}){col 67}= {res}    160.83
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-24264.467{txt}{col 49}Pseudo R2{col 67}= {res}    0.0075

{txt}{ralign 85:(Std. Err. adjusted for {res:7,783} clusters in centro)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         benefdummy{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}patriotflag_hat {c |}{col 21}{res}{space 2}-2.549105{col 33}{space 2} 1.329864{col 44}{space 1}   -1.92{col 53}{space 3}0.055{col 61}{space 4} -5.15559{col 74}{space 3} .0573792
{txt}patchavezstate08_iv {c |}{col 21}{res}{space 2} 3.115612{col 33}{space 2} 1.161677{col 44}{space 1}    2.68{col 53}{space 3}0.007{col 61}{space 4} .8387674{col 74}{space 3} 5.392457
{txt}{space 6}chavezgov2008 {c |}{col 21}{res}{space 2} -1.47529{col 33}{space 2} .3639401{col 44}{space 1}   -4.05{col 53}{space 3}0.000{col 61}{space 4}  -2.1886{col 74}{space 3}-.7619806
{txt}{space 7}opositor_hat {c |}{col 21}{res}{space 2}-4.224476{col 33}{space 2} 1.755427{col 44}{space 1}   -2.41{col 53}{space 3}0.016{col 61}{space 4}-7.665049{col 74}{space 3}-.7839034
{txt}oppchavezstate08_iv {c |}{col 21}{res}{space 2} 1.258623{col 33}{space 2} 1.256609{col 44}{space 1}    1.00{col 53}{space 3}0.317{col 61}{space 4}-1.204286{col 74}{space 3} 3.721532
{txt}{space 9}misionfull {c |}{col 21}{res}{space 2} -.291803{col 33}{space 2} .2289689{col 44}{space 1}   -1.27{col 53}{space 3}0.203{col 61}{space 4}-.7405738{col 74}{space 3} .1569677
{txt}{space 16}nbi {c |}{col 21}{res}{space 2} .0097811{col 33}{space 2} .0087383{col 44}{space 1}    1.12{col 53}{space 3}0.263{col 61}{space 4}-.0073458{col 74}{space 3} .0269079
{txt}{space 10}lruralpop {c |}{col 21}{res}{space 2}  .013125{col 33}{space 2} .0193045{col 44}{space 1}    0.68{col 53}{space 3}0.497{col 61}{space 4}-.0247112{col 74}{space 3} .0509612
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-1.439156{col 33}{space 2}  .719061{col 44}{space 1}   -2.00{col 53}{space 3}0.045{col 61}{space 4} -2.84849{col 74}{space 3} -.029822
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. est store ivlogit1;
{txt}
{com}. estout ivlogit*, style(tex) starlevels(* .10 ** .05 *** .01) cells(b(star fmt(3)) se(par fmt(3))) 
> mlabels("1" "2" "3" "4" "5")  keep(nbi lruralpop opositor_hat patriotflag_hat misionfull patchavezstate08_iv oppchavezstate08_iv chavezgov2008)
> order(patchavezstate08_iv patriotflag_hat oppchavezstate08_iv opositor_hat chavezgov2008 misionfull lruralpop nbi)
> varlabels(opositor_hat "Opposition in Opposition State" patriotflag_hat "Patriot in Opposition State" swing "Swing in Opposition" age "Age" lvotantes "log(Voters)" nno "Pct. No" misionfull "Misiones" abstencion "Abstention"
> patchavezstate08_iv "Patriot in Chavez State" chavezgov2008 "Chavez Governor Baseline" oppchavezstate08_iv "Opposition in Chavez State" swingchavezstate08 "Swing in Chavez"
> nbi "Poverty Rate" rural_pc_muni "Percent Rural" lruralpop "log(Rural Population)" lruralvoters "log(Rural Voters)")
> stats(N, labels("Observations") fmt(0 0 3));
{res}
            &           1   \\
            &        b/se   \\
benefdummy  &               \\
Patriot in Chavez State&       3.116***\\
            &     (1.162)   \\
Patriot in Opposition State&      -2.549*  \\
            &     (1.330)   \\
Opposition in Chavez State&       1.259   \\
            &     (1.257)   \\
Opposition in Opposition State&      -4.224** \\
            &     (1.755)   \\
Chavez Governor Baseline&      -1.475***\\
            &     (0.364)   \\
Misiones    &      -0.292   \\
            &     (0.229)   \\
log(Rural Population)&       0.013   \\
            &     (0.019)   \\
Poverty Rate&       0.010   \\
            &     (0.009)   \\
Observations&      122267   \\
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/mikealbertus/Dropbox/Research/Land Reform under Chavez in Venezuela/Paper/Research Note/PSRM/PSRM R&R/PSRM Replication Data/AppendixTable3.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}24 Apr 2017, 21:09:10
{txt}{.-}
{smcl}
{txt}{sf}{ul off}